#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import document_blueprint
from api_1_0.documentResource.documentResource import DocumentResource
from api_1_0.documentResource.documentOtherResource import DocumentOtherResource

api = Api(document_blueprint)

api.add_resource(DocumentResource, '/document/<doc_id>', '/document', endpoint='Document')


@document_blueprint.route('/document/upload', methods=['POST'], endpoint='DocumentUpload')
def upload_document():
    return DocumentOtherResource.upload_document()
